package cn.com.cpic.insurance.rulecheck.core;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

/**
 * 
 * @author 代波
 * @since 2011-8-20
 */
public final class SimpleBomContext implements BomContext {
	private Map<Object, Object> map = new HashMap<Object, Object>();

	public Iterator<Object> iterator() {
		return map.keySet().iterator();
	}

	public Object getBom(Object key) {
		return map.get(key);
	}

	public Object addBom(Object key, Object value) {
		return map.put(key, value);
	}

	public Object removeBom(Object key) {
		return map.remove(key);
	}

	public boolean containsBom(Object key) {
		return map.containsKey(key);
	}
}
